//
//  LPChooseYearAndMonthAndDayAndHourAndMinuteView.h
//  ShangHaiHuDongApp
//
//  Created by 刘应平 on 2017/6/22.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    ChooseYMDHMS, /**  年月日时分秒  */
    ChooseYMDHM,  /**  年月日时分  */
    ChooseYMD,    /**  年月日  */
    ChooseYM,     /**  年月  */
    ChooseMD,     /**  月日  */
    ChooseMDHM,   /**  月日时分  */
    ChooseHMS,    /**  时分秒  */
    ChooseHM,     /**  时分  */
    ChooseY,     /**  年  */
} ChooseDate;

@class LPChooseYearAndMonthAndDayAndHourAndMinuteSecondView;
@protocol LPChooseYearAndMonthAndDayAndHourAndMinuteSecondDelegate <NSObject>

- (void)ChooseYearAndMonthAndDayAndHourAndMinuteSecondWithTitle:(NSString * )string view:(LPChooseYearAndMonthAndDayAndHourAndMinuteSecondView *)view;

@end
@interface LPChooseYearAndMonthAndDayAndHourAndMinuteSecondView : UIView
/** 1.最小的年份，default is 1900 */
@property (nonatomic, assign)NSInteger yearLeast;
/** 2.显示年份数量，default is 200 */
@property (nonatomic, assign)NSInteger yearSum;
/** 3.中间选择框的高度，default is 28*/
@property (nonatomic, assign)CGFloat heightPickerComponent;
/**  代理  */
@property(nonatomic,assign)id<LPChooseYearAndMonthAndDayAndHourAndMinuteSecondDelegate>delegate;
/**  显示  */
-(void)show:(NSString *)time chooseDateType:(ChooseDate)type;
/**  隐藏  */
-(void)hiden;
-(void)setUI:(NSString *)time;
@end
